package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysReceiveOrderConfig;
import com.ruoyi.system.mapper.SysReceiveOrderConfigMapper;
import com.ruoyi.system.service.ISysReceiveOrderConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 自动接单配置Service业务层处理
 *
 * @author hjf
 * @date 2025-02-21
 */
@Service
public class SysReceiveOrderConfigServiceImpl implements ISysReceiveOrderConfigService {
    @Autowired
    private SysReceiveOrderConfigMapper sysReceiveOrderConfigMapper;

    /**
     * 查询自动接单配置
     *
     * @param id 自动接单配置主键
     * @return 自动接单配置
     */
    @Override
    public SysReceiveOrderConfig selectSysReceiveOrderConfigById(Long id) {
        return sysReceiveOrderConfigMapper.selectSysReceiveOrderConfigById(id);
    }

    /**
     * 查询自动接单配置列表
     *
     * @param sysReceiveOrderConfig 自动接单配置
     * @return 自动接单配置
     */
    @Override
    public List<SysReceiveOrderConfig> selectSysReceiveOrderConfigList(SysReceiveOrderConfig sysReceiveOrderConfig) {
        return sysReceiveOrderConfigMapper.selectSysReceiveOrderConfigList(sysReceiveOrderConfig);
    }

    /**
     * 新增自动接单配置
     *
     * @param sysReceiveOrderConfig 自动接单配置
     * @return 结果
     */
    @Override
    public int insertSysReceiveOrderConfig(SysReceiveOrderConfig sysReceiveOrderConfig) {
        return sysReceiveOrderConfigMapper.insertSysReceiveOrderConfig(sysReceiveOrderConfig);
    }

    /**
     * 修改自动接单配置
     *
     * @param sysReceiveOrderConfig 自动接单配置
     * @return 结果
     */
    @Override
    public int updateSysReceiveOrderConfig(SysReceiveOrderConfig sysReceiveOrderConfig) {
        return sysReceiveOrderConfigMapper.updateSysReceiveOrderConfig(sysReceiveOrderConfig);
    }

    /**
     * 批量删除自动接单配置
     *
     * @param ids 需要删除的自动接单配置主键
     * @return 结果
     */
    @Override
    public int deleteSysReceiveOrderConfigByIds(Long[] ids) {
        return sysReceiveOrderConfigMapper.deleteSysReceiveOrderConfigByIds(ids);
    }

    /**
     * 删除自动接单配置信息
     *
     * @param id 自动接单配置主键
     * @return 结果
     */
    @Override
    public int deleteSysReceiveOrderConfigById(Long id) {
        return sysReceiveOrderConfigMapper.deleteSysReceiveOrderConfigById(id);
    }
}
